package com.company.gas.mapper;


import com.company.gas.pojo.Install;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

//mybatis的mapper类
@Mapper
@Repository
public interface InstallMapper {
    List<Install> selectAll();

    Install queryInstallById(@Param(value = "istId") String istId);

    int addInstall(@Param(value = "istId") String istId, @Param(value = "istDes") String istDes,
                   @Param(value = "istPro") String istPro,
                   @Param(value = "istTime") Date istTime, @Param(value = "flag") Integer flag,
                   @Param(value = "createTime") Date createTime, @Param(value = "createBy") String createBy,
                   @Param(value = "modifyTime") Date modifyTime, @Param(value = "modifyBy") String modifyBy,
                   @Param(value = "cusId") String cusId);

    int updateInstall(@Param(value = "istDes") String istDes,
                      @Param(value = "istPro") String istPro,
                      @Param(value = "istTime") Date istTime,
                      @Param(value = "modifyTime") Date modifyTime, @Param(value = "modifyBy") String modifyBy,
                      @Param(value = "cusId") String cusId);

    int deleteInstall(@Param("istId") String istId);
}
